class Good(object):

    def __init__(self, n, p):
        self.name = n
        self.__price = p

    @property
    def price(self):
        n = self.name
        p = self.__price
        print(self)
        print("我是,{}手机！我要好多钱，数目为{}".format(n, p))

        return  self.__price


    @price.setter
    def price(self, value):
        print("我的价目有所改动哦！价格为{}".format(value))

        self.__price = value

    @price.deleter
    def price(self):
        print("别删我")















obj = Good("华为手机", 8848)
obj.price
print("-----------------------------------")

del obj.price
print(obj)


obj.price = 123